package com.zjj.lbw.designpattern.proxy.jdk;

import com.zjj.lbw.designpattern.proxy.ConcreteSubject;
import com.zjj.lbw.designpattern.proxy.Subject;

/**
 * @author zhanglei.zjj
 * @description jdk动态代理-客户端
 * @date 2023/7/13 23:09
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("开始");
        ProxyHandler handler = new ProxyHandler();
        Subject subject = (Subject) handler.newProxyInstance(new ConcreteSubject());
        subject.request();
        System.out.println("结束");
    }
}
